#ifndef EDITOROPTIONDIALOG_H
#define EDITOROPTIONDIALOG_H
//编辑器选项对话框
class EditorOptionDialog : public QDialog
{
    Q_OBJECT
public:
    EditorOptionDialog(QWidget *parent = 0); //构造函数

private:
    QFontComboBox *fontComboBox = nullptr;
    QSpinBox * fontSizeSpinBox = nullptr;
    QSpinBox * tabWidthSpinBox = nullptr;
    QComboBox *languageComboBox = nullptr;
    QSpinBox *iconSizeSpinBox = nullptr;
    QComboBox *encodingComboBox = nullptr;
    QPushButton *okButton = nullptr; //定义OK按钮
    QPushButton *defaultButton = nullptr; //定义Default按钮
    QPushButton *cancelButton = nullptr; //定义Cancel按钮

    void showEvent(QShowEvent* event);
    void loadData();
    void okButtonClicked(); //OK按钮点击时的处理函数
    void defaultButtonClicked(); //Default按钮点击时的处理函数
    void cancelButtonClicked(); //Cancel按钮点击时的处理函数
};
#endif
